package com.ganxiang.ximenhong.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.ganxiang.ximenhong.model.TaskListener;
import com.ganxiang.ximenhong.model.TaskType;


public class BaseFragment extends Fragment implements TaskListener {

	public Activity mActivity;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mActivity = getActivity();
	}
	
	@Override
	public void taskStarted(TaskType type) {
		
	}

	@Override
	public void taskProgress(TaskType type, int progress, int total) {
		
	}

	@Override
	public void taskFinished(TaskType type, Object result) {
		
	}

	@Override
	public void taskFinished(TaskType type, Object result, Object tag) {
		
	}

	@Override
	public void taskIsCanceled(TaskType type) {
		
	}

}
